<%@page import="com.wanmait.travel.vo.Pager"%>
<%@page import="com.wanmait.travel.vo.Province"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path=request.getServletContext().getContextPath();
Pager pager=(Pager)request.getAttribute("provinceAll");
List<Province> provinceAll=(List<Province>)pager.getData();
for(int i=0;provinceAll!=null&&i<provinceAll.size();i++){
	Province province=provinceAll.get(i);
%>
<input type="button" value="<%=province.getName() %>" onclick="showProvince('<%=province.getId()%>')" >
<%}%>
	
	<div>
	<%if(pager.hasPrev()){ %>
	<a href="#" onclick="provincePage('<%=pager.getPageNum()-1%>')">上一页</a>
	<%} %>
	
	
	<%for(int i=1;i<=pager.getPageCount();i++){%>
	<a href="#" onclick="provincePage('<%=i %>')"><%=i %></a>
	<%} %>	
	
	<%if(pager.hasNext()){ %>
	<a href="#" onclick="provincePage('<%=pager.getPageNum()+1%>')">下一页</a>
	<%} %>
	</div>
